package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 拼团记录
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-11
 */
@TableName("t_jizan_log")
public class JizanLog extends Model<JizanLog> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 集赞ID
     */
	private Long ptoid;

    /**
     * 订单id
     */
	private Long oid;

    /**
     * 商品id
     */
	private Long gid;
    /**
     * 商户id
     */
	@JsonIgnore
	private Long mid;
	@JsonIgnore
	private Long mpid;
	@JsonIgnore
	private Long sid;

    /**
     * 参与用户uid
     */
	@JsonIgnore
	private Long uid;
    /**
     * 用户图像
     */
	private String avatarpic;
    /**
     * 用户手机
     */
	private String phone;

	private int state;
	private int isowner;

    /**
     * 用户昵称
     */
	private String nickname;
    /**
     * 创建时间购买时间
     */
	private Date createtime;
	@JsonIgnore
	private Date modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getAvatarpic() {
		return avatarpic;
	}

	public void setAvatarpic(String avatarpic) {
		this.avatarpic = avatarpic;
	}

	public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public int getIsowner() {
		return isowner;
	}

	public void setIsowner(int isowner) {
		this.isowner = isowner;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public void setPtoid(Long ptoid) {
		this.ptoid = ptoid;
	}

	public Long getPtoid() {
		return ptoid;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Date getModifier() {
		return modifier;
	}

	public void setModifier(Date modifier) {
		this.modifier = modifier;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PintuanLog{" +
			"id=" + id +
			", ptoid=" + ptoid +
			", oid=" + oid +
			", gid=" + gid +
			", mid=" + mid +
			", uid=" + uid +
			", avatarpic=" + avatarpic +
			", createtime=" + createtime +
			"}";
	}
}
